<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"/>

<!-- 引入基础的css和js -->
<link rel="import" href="../material/import.html" id="import"/>


	<link  id="theme" rel="stylesheet">
<script>
var permissionType={
	add:"busregion:save",update:"busregion:update",delete:"busregion:delete",
	submit:"busregion:submit",auditpass:"busregion:auditpass",auditnopass:"busregion:auditnopass"	
};
</script>

</head>
<body>
<div id="app" v-cloak>

    <!-- 列表显示区间 start -->
	<div v-show="showList">	     	    
	    <!-- 查询块 start -->
	     <search-component>	                    
                 <search-input v-model="search.regionName" :field="busRegionField.regionName" ></search-input>
                 <search-input v-model="search.regionCode" :field="busRegionField.regionCode" ></search-input>
                 <search-select :field="busRegionField.status" :list="baseData.STATUS" v-model="search.status"></search-select>
				 <search-submit :field="pageData.query" @searchsubmit="query"></search-submit>
		 </search-component>	          
	    <!-- 查询块 end -->

		<div class="col-sm-12 search-collapse">
	   <!-- 列表table显示 start -->	
		<permission @add="add" @update="update" @del="del" @submit="audit(1)" @auditpass="audit(2)" @auditnopass="audit(3)"></permission>
	    <table id="table"></table>
	    <!-- 列表table显示end -->
		</div>
	</div>
    <!-- 列表显示区间 end -->
	
	<!-- 编辑内容显示区间 start -->
    <div v-show="!showList">
	    <defaultform  :title="title" @reload="reload" @submit="saveOrUpdate">
                <rojao-input :field="busRegionField.regionName" name="regionName" v-model="busRegion.regionName" :placeholder="busRegionField.regionName" ></rojao-input>		
                <rojao-input :field="busRegionField.regionCode" name="regionCode" v-model="busRegion.regionCode" :placeholder="busRegionField.regionCode" ></rojao-input>		
               <!-- <myframe-textarea :field="busRegionField.remark" name="remark" v-model="busRegion.remark" :placeholder="busRegionField.remark" ></myframe-input>	-->
	    </defaultform>
	</div>
	<!-- 编辑内容显示区间 end -->	    
</div>

<script src="../bus/js/busregion.js"></script>
</body>
</html>